package com.four.service.impl;

import com.four.dao.CardMapper;
import com.four.pojo.*;
import com.four.service.ICardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("cardServiceImpl")
public class CardServiceImpl implements ICardService {
    @Autowired
    @Qualifier("cardMapper")
    private CardMapper cardMapper;


    @Override
    public int deleteByPrimaryKey(Integer oId) {
        return cardMapper.deleteByPrimaryKey(oId);
    }

    @Override
    public int insert(Card record) {
        return cardMapper.insert(record);
    }

    @Override
    public int insertSelective(Card record) {
        return cardMapper.insertSelective(record);
    }

    @Override
    public Card selectByPrimaryKey(Integer oId) {
        return cardMapper.selectByPrimaryKey(oId);
    }

    @Override
    public int updateByPrimaryKeySelective(Card record) {
        return cardMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Card record) {
        return cardMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Card> findAllClamps(Card card) {
        return cardMapper.findAllClamps(card);
    }

    @Override
    public int findCountCard(Card card) {
        return cardMapper.findCountCard(card);
    }

    @Override
    public List<Card> findAllCard(Card card) {
        return cardMapper.findAllCard(card);
    }

    @Override
    public List<Card> findCount(Card card) {
        return cardMapper.findCount(card);
    }

    @Override
    public int findAllCount(Card card) {
        return cardMapper.findAllCount(card);
    }

    @Override
    public int findClamp(Card card) {
        return cardMapper.findClamp(card);
    }

    @Override
    public int findCountOrder(Card card) {
        return cardMapper.findCountOrder(card);
    }

    @Override
    public int findOrdersSum() {
        return cardMapper.findOrdersSum();
    }

    @Override
    public int findOrdersCount() {
        return cardMapper.findOrdersCount();
    }

    @Override
    public List<Gift> findAllGift() {
        return cardMapper.findAllGift();
    }

    @Override
    public List<Result> findCountKD() {
        return cardMapper.findCountKD();
    }

    @Override
    public List<Result> findCountSum() {
        return cardMapper.findCountSum();
    }

    @Override
    public List<Result> findSum() {
        return cardMapper.findSum();
    }

    @Override
    public int insertKD(Result result) {
        return cardMapper.insertKD(result);
    }

    @Override
    public List<Result> findResult() {
        return cardMapper.findResult();
    }

    @Override
    public int updateResult(Result result) {
        return cardMapper.updateResult(result);
    }

    @Override
    public List<Result2> findResult2() {
        return cardMapper.findResult2();
    }

    @Override
    public int findCountGift(Card card) {
        return cardMapper.findCountGift(card);
    }

    @Override
    public int findCountOrders(Card card) {
        return cardMapper.findCountOrders(card);
    }

    @Override
    public List<Orders> findOrders(Card card) {
        return cardMapper.findOrders(card);
    }
}
